<table class="table table-striped table-bordered table-hover" id="sample-table-1">
    <thead>
    <tr>
        <th class="center">
            <input type="checkbox" class="checkAll" name="checkAll"> <span class="lbl"></span>
        </th>
        <th class="center">ID</th>
        <th class="center">内容</th>
        <th class="center">类型</th>
        <th class="center">用户</th>
        <th class="center">状态</th>
        <th class="center">置顶</th>
        <th class="center">热点</th>
        <th class="center">精华</th>
        <th class="center">创建时间</th>
        <th class="center">最近更改</th>
        <th class="center">操作</th>
    </tr>
    </thead>
    <tbody>
    {% for item in data.items %}
        <tr class="tr-{{ item.id }}">
            <td class="center">
                <input type="checkbox" class="checkAll" name="checkAll[{{ item.id }}]"> <span
                        class="lbl"></span>
            </td>
            <td class="center">{{ item.id }}</td>
            <td class="center"><a href="{{ url(['for':'entity','entity':'node','id':item.id]) }}"
                                  data-toggle="tooltip" target="_blank" data-placement="right"
                                  title="访问{{ item.title }}">{{ item.title }}</a></td>
            <td class="center"><a data-target="#main" href="{{ url }}?type={{ item.contentModel }}"
                                  data-toggle="tooltip" target="_blank" data-placement="right"
                                  title="只查看类型文章">{{ getVar(item,'contentModel') }}</a></td>
            <td class="center">{% if item.uid %}<a data-target="#main" href="{{ url }}?uid={{ item.uid }}" data-toggle="tooltip"
                                                   target="_blank" data-placement="right"
                                                   title="只查看该用户文章">{{ item.getEntity('uid').name }}</a>{% else %}匿名用户{% endif %}</td>
            <td class="center"><a data-target="#main" href="{{ url }}?state={{ item.state }}"
                                  data-toggle="tooltip" target="_blank" data-placement="right"
                                  title="只查看{{ getVar(item,'state') }}文章">{{ getVar(item,'state') }}</a></td>
            <td class="center">{{ item.top }}</td>
            <td class="center">{{ item.hot }}</td>
            <td class="center">{{ item.essence }}</td>
            <td class="center">{{ item.created }}</td>
            <td class="center">{{ item.changed }}</td>
            <td class="center">
                {% for key,link in item.links() %}
                    <a href="{{ url(link['href']) }}" class="btn btn-xs btn-{{ link['icon'] }}"
                       data-target="#main">{{ link['name'] }}</a>
                {% endfor %}
            </td>
        </tr>
    {% else %}
        <tr>
            <td colspan="7">没有数据</td>
        </tr>
    {% endfor %}
    </tbody>
</table>
<div class="space-4"></div>
{{ partial("Themes/AdminLTE/templates/paginator") }}